if exist %~dp0nginx\temp (
   echo 'temp folder exist!'
) else (
md %~dp0nginx\temp
)
if exist %~dp0nginx\logs (
   echo 'logs folder exist!'
) else (
md %~dp0nginx\logs
)
CD /D %~dp0nginx
nginx.exe
exit